import request from '@/utils/request'

// 获取菜单列表
export function findmenusList() {
  return request({
    url: '/menus'
  })
}

// 添加菜单
export function postMenus(data) {
  return request({
    url: '/menus',
    method: 'POST',
    data
  })
}

// 菜单详情
export function MenusDetails(id) {
  return request({
    url: `/menus/${id}`
  })
}

// 菜单修改
export function putMenus(id,data) {
  return request({
    url: `/menus/${id}`,
    method: 'PUT',
    data
  })
}

// 删除菜单
export function DelectMenus(id) {
  return request({
    url: `/menus/${id}`,
    method: 'DELETE'
  })
}
